begin
  libs = Dir.getwd
  rtable = File.join(libs,'rtable')
  $libdir = rtable
  require File.join(rtable,'table') 
rescue
  libs = RUBYSCRIPT2EXE.appdir('lib')
  rtable = File.join(libs,'rtable')
  $libdir=rtable
  require File.join(rtable,'table')
end